package com.baosight.risk.service.riri.entity;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * Table: T_RIRI_RISK
 */
@Data
@ApiModel
@Table(name = "T_RIRI_RISK")
public class RiriRisk extends BaseEntity {



    @ApiModelProperty("topThree标识")
    @Column(name = "TOP_THREE_FLAG")
    @Excel(name = "TOP3标识")
    private String topThreeFlag;

    /**
     * 历史风险点ID
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    HIS_RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("历史风险点ID")
    @Column(name = "HIS_RISK_ID")
    private String hisRiskId;

    /**
     * 风险编码
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_NO
     * Nullable:  false
     */
    @ApiModelProperty("风险编码")
    @Column(name = "RISK_NO")
    private String riskNo;

    /**
     * 风险细类名称（末级）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    DETAIL_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("风险细类名称（末级）")
    @Column(name = "DETAIL_TYPE_NAME")
    @Excel(name = "风险类别")
    private String detailTypeName;

    /**
     * 风险名称
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_NAME
     * Nullable:  true
     */
    @ApiModelProperty("风险名称")
    @Column(name = "RISK_NAME")
    @Excel(name = "风险名称")
    private String riskName;

    /**
     * 风险描述
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_DESC
     * Nullable:  true
     */
    @ApiModelProperty("风险描述")
    @Column(name = "RISK_DESC")
    @Excel(name = "风险描述")
    private String riskDesc;

    /**
     * 备注
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    REMARK
     * Nullable:  true
     */
    @ApiModelProperty("备注")
    @Column(name = "REMARK")
    @Excel(name = "主要应对举措")
    private String remark;


    /**
     * 排序
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
    @Excel(name = "排序")
    private Integer rowOrder;
    /**
     * 风险大类（一级）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("风险大类（一级）")
    @Column(name = "RISK_TYPE")
    private String riskType;

    /**
     * 风险大类名称
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("风险大类名称")
    @Column(name = "RISK_TYPE_NAME")
    private String riskTypeName;

    /**
     * 风险细类编码（末级）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    DETAIL_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("风险细类编码（末级）")
    @Column(name = "DETAIL_TYPE")
    private String detailType;



    /**
     * 状态（01-草稿；02-已提交；10-审核通过；20-关闭）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    STATUS
     * Nullable:  true
     */
    @ApiModelProperty("状态（01-草稿；02-已提交；10-审核通过；20-关闭）")
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("状态说明")
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * 所属单位
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("所属单位")
    @Column(name = "COMP_CODE")
    private String compCode;



    /**
     * 所属部门
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    DEPT_CODE
     * Nullable:  true
     */
    @ApiModelProperty("所属部门")
    @Column(name = "DEPT_CODE")
    private String deptCode;



    /**
     * 风险库编码
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RIAA_RISK_NO
     * Nullable:  true
     */
    @ApiModelProperty("风险库编码")
    @Column(name = "RIAA_RISK_NO")
    private String riaaRiskNo;

    /**
     * 风险发生可能性
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_PROBABILITY
     * Nullable:  true
     */
    @ApiModelProperty("风险发生可能性")
    @Column(name = "RISK_PROBABILITY")
    private String riskProbability;
    /**
     * 发生后影响程度
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    IMPACT_DEGREE
     * Nullable:  true
     */
    @ApiModelProperty("发生后影响程度")
    @Column(name = "IMPACT_DEGREE")
    private String impactDegree;



    /**
     * 发生后影响程度
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    IMPACT_DEGREE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("发生后影响程度")
    @Column(name = "IMPACT_DEGREE_NAME")
    @Excel(name = "发生后影响程度")
    private String impactDegreeName;
    /**
     * 风险发生可能性
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_PROBABILITY_NAME
     * Nullable:  true
     */
    @ApiModelProperty("风险发生可能性")
    @Column(name = "RISK_PROBABILITY_NAME")
    @Excel(name = "风险发生可能性")
    private String riskProbabilityName;



    /**
     * 年度
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    ACCT_YEAR
     * Nullable:  true
     */
    @ApiModelProperty("年度")
    @Column(name = "ACCT_YEAR")
    @Excel(name = "年度")
    private String acctYear;

    /**
     * 当前季度
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    QUARTER_CURRENT
     * Nullable:  true
     */
    @ApiModelProperty("当前季度")
    @Column(name = "QUARTER_CURRENT")
    @Excel(name = "季度")
    private String quarterCurrent;

    /**
     * 所属部门名称
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    DEPT_NAME
     * Nullable:  true
     */
    @ApiModelProperty("所属部门名称")
    @Column(name = "DEPT_NAME")
    @Excel(name = "所属单位")
    private String deptName;

    /**
     * 所属单位名称
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("所属单位名称")
    @Column(name = "COMP_NAME")
    private String compName;


    /**
     * 评估得分
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    ASSESS_SCORE
     * Nullable:  true
     */
    @ApiModelProperty("评估得分")
    @Column(name = "ASSESS_SCORE")
    private Short assessScore;

    /**
     * 风险等级（1-很低；2-低；3-中；4-高；5-很高）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_LEVEL
     * Nullable:  true
     */
    @ApiModelProperty("风险等级（1-很低；2-低；3-中；4-高；5-很高）")
    @Column(name = "RISK_LEVEL")
    private String riskLevel;

    /**
     * 风险等级说明
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    RISK_LEVEL_NAME
     * Nullable:  true
     */
    @ApiModelProperty("风险等级说明")
    @Column(name = "RISK_LEVEL_NAME")
    private String riskLevelName;

    /**
     * 重要性（重大、重要、一般）
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    IMPORTANCE
     * Nullable:  true
     */
    @ApiModelProperty("重要性（重大、重要、一般）")
    @Column(name = "IMPORTANCE")
    private String importance;

    /**
     * 重要性说明
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    IMPORTANCE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("重要性说明")
    @Column(name = "IMPORTANCE_NAME")
    private String importanceName;

    /**
     * 是否管理员添加
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    ADMIN_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("是否管理员添加")
    @Column(name = "ADMIN_FLAG")
    private String adminFlag;





    @ApiModelProperty("管理单位编码")
    @Column(name = "MANAGE_COMP_CODE")
    private String manageCompCode;

    @ApiModelProperty("管理单位名称")
    @Column(name = "MANAGE_COMP_NAME")
    private String manageCompName;


    @ApiModelProperty("是否当季度（当季:Y下期预判:N）")
    @Column(name = "IS_CURRENT_QUARTER")
    private String isCurrentQuarter;

    /**
     * 审核日期
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    REMARK
     * Nullable:  true
     */
    @ApiModelProperty("审核日期")
    @Column(name = "AUDIT_DATE")
    private String auditDate;




    private static final long serialVersionUID = 1L;
}